package org.nobody.mallb2c.mallproduct.service;

import com.baomidou.mybatisplus.extension.service.IService;
import org.nobody.common.utils.PageUtils;
import org.nobody.mallb2c.mallproduct.entity.SpuInfoEntity;
import org.nobody.mallb2c.mallproduct.vo.SpuSaveVo;

import java.util.Map;

/**
 * spu信息
 *
 * @author fancier
 * @email fancier2093@gmail.com
 * @date 2020-07-30 16:25:27
 */
public interface SpuInfoService extends IService<SpuInfoEntity> {

  PageUtils queryPage(Map<String, Object> params);

  void saveSpuInfo(SpuSaveVo spuInfo);

  void saveBaseSpuInfo(SpuInfoEntity spuInfoEntity);

  PageUtils queryPageByCondition(Map<String, Object> params);

  /**
   * 商品上架
   * @param spuId
   */
  void up(Long spuId);

  SpuInfoEntity getSpuInfoBySkuId(Long skuId);
}

